package com.xiaoshuidi.cloud.module.contract.convert.contract;

import com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo.ContractChangingRoomsRecordPageResp;
import com.xiaoshuidi.cloud.module.contract.dal.dataobject.contract.ContractChangingRoomsRecordDo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author Feng
 * @date 2023/7/3
 */
@Mapper
public interface ContractChangingRoomsRecordConvert {
    ContractChangingRoomsRecordConvert INSTANCE = Mappers.getMapper(ContractChangingRoomsRecordConvert.class);

    @Mapping(source = "changeDate", target = "changeDate", dateFormat = "yyyy-MM-dd")
    ContractChangingRoomsRecordPageResp convert(ContractChangingRoomsRecordDo bean);
}
